package reflect;

import reflect.annotation.AutoRunClass;

/*
* 反射之中操作注解
* */
public class reflectDemo7 {
    public static void main(String[] args) throws Exception{
        /*
        * 查看当前包中那些类被注解@AutoRunClass标注了
        * */
        Class cls = Class.forName("reflect.Person");
        /*
        * 类对象.isAnnotationPersent(类对象)
        * 判断cls所表示的类Person是否被AutoRunClass注解标注
        * */
        boolean b = cls.isAnnotationPresent(AutoRunClass.class);
        System.out.println(b);
    }
}
